package com.lantosec.hmrp.modules.archives.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserGiftDispose;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部拒收或上交礼金、礼品情况登记表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserGiftDispose对象", description="领导干部拒收或上交礼金、礼品情况登记表")
public class UserGiftDisposeVO extends BaseVO<UserGiftDispose> {
    private static final long serialVersionUID = 1L;


    public UserGiftDisposeVO(UserGiftDispose entity){
        this.userGiftDisposeId = entity.getUserGiftDisposeId();
        this.userId = entity.getUserId();
        this.disposeType = entity.getDisposeType();
        this.disposeDate = entity.getDisposeDate();
        this.cashGift = entity.getCashGift();
        this.giftName = entity.getGiftName();
        this.giftNum = entity.getGiftNum();
        this.totalRmb = entity.getTotalRmb();
        this.handDept = entity.getHandDept();
        this.giver = entity.getGiver();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserGiftDispose convertToEntity(){
        return new UserGiftDispose(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userGiftDisposeId;

    @ApiModelProperty(value = "用户主表ID")
    private String userId;

    @ApiModelProperty(value = "礼品处理类型（0：拒收，1：上交）")
    private Integer disposeType;

    @ApiModelProperty(value = "处理时间")
    private String disposeDate;

    @ApiModelProperty(value = "礼金")
    private BigDecimal cashGift;

    @ApiModelProperty(value = "礼品名称")
    private String giftName;

    @ApiModelProperty(value = "礼品数量")
    private BigDecimal giftNum;

    @ApiModelProperty(value = "礼品总金额")
    private BigDecimal totalRmb;

    @ApiModelProperty(value = "上交部门")
    private String handDept;

    @ApiModelProperty(value = "送礼方")
    private String giver;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
